<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsp/admintop.jsp" %>
<jsp:directive.page import="com.lg.system.CTurnPage" />
<%@ include file="/jsp/jscommom.jsp"%>


<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>企业浏览</title>
		<link href="/css/login.css" rel="stylesheet" type="text/css" />
	</head>
	<script type="text/javascript">
	function domethod(flag){
	document.all.method.value=flag;
    document.forms[0].submit();
    document.all.method.value="";
	}
	
	function goto(url){
	window.open(url,"_blank");
	}
	</script>
	<%
		CTurnPage mPage = new CTurnPage();
		mPage = (CTurnPage) request.getAttribute("page");
	%>
	<body>
		<html:form action="/recommenduser/querycorpor" method="post">
			<html:hidden property="method" />
			<div align="center">
				<table width="97%"  border="0" align="center" cellpadding="0"
					cellspacing="1" class="line1">
					<tr>
						<td class="titlebg" colspan="4">
							企业管理
						</td>
					</tr>
					<tr>
						<td class="mtdtitle1">
							企业编号
						</td>
						<td class="mtdtextleft">
							<html:text property="corporId" styleClass="input1"></html:text>
						</td>
						
						<td class="mtdtitle1">
							状态
						</td>
						<td class="mtdtextleft">
							<html:select property="status" styleClass="input1">
							<option value="">全部</option>
							<option value="1">批准</option>
							<option value="0">未批准</option>
							</html:select>
						</td>
					</tr>

					<tr>
						<td class="mtdtitle1">
							企业名称
						</td>
						<td  class="mtdtextleft">
							<html:text property="corporName" styleClass="input1"></html:text>
						</td>
						<td class="mtdtitle1">
							企业类型
						</td>
						<td  class="mtdtextleft">
						    <html:select property="corportype">
						    <option value="">全部</option>
						    <option value="0">国有企业</option>
						    <option value="1">外资企业</option>
						    <option value="2">合资企业</option>
						    <option value="3">私营企业</option>
						    <option value="4">民营企业</option>
						    <option value="5">股份制企业</option>
						    <option value="6">集体企业</option>
						    <option value="7">集体事业</option>
						    <option value="8">乡镇企业</option>
						    <option value="9">行政机关</option>
						    <option value="10">社会团体</option>
						    <option value="11">事业单位</option>
						    <option value="12">跨国公司(集团)</option>
						    <option value="13">其它企业</option>
						    </html:select>
						</td>
					</tr>
					<tr>
						<td class="mtdtitle1" colspan="4">
							<input value="查询" type="button" onclick="domethod()"
								class="tbutton" />
							<input value="重置" type="reset"
								class="tbutton"/>
						</td>
					</tr>
					
					<tr>
						<td class="mtdtextleft" colspan="4" >
							&nbsp;
						</td>
					</tr>

					<tr>
						<td class="mtdtitle1" colspan="4">
							<table width="100%">
								<tr>
									<td class="titlebg" colspan="4">
										企业列表
									</td>
								</tr>

								<tr>
									<td class="mtdtitle1">
										企业编号
									</td>
									<td class="mtdtitle1">
										企业名称
									</td>
									<td class="mtdtitle1">
										类型
									</td>
									<td class="mtdtitle1">
									状态
									</td>
								</tr>
								<logic:empty name="page" property="sqlList">
									<tr>
										<td class="mthmidtext1" colspan="4">
											没有可显示的内容！
											<br>
										</td>
									</tr>
								</logic:empty>
								<logic:notEmpty name="page" property="sqlList">
									<logic:iterate type="com.ibatis.po.corpor.TCorporation"
										id="approveCorporList" name="page" property="sqlList">
										<tr style="cursor:hand"
											onclick="goto('/recommenduser/queryjob.do?corporId=<bean:write name='approveCorporList' property='id'/>')">
											<td class="mtdtextcenterwrite">
												${approveCorporList.id}
											</td>
											<td class="mtdtextcenterwrite">
												${approveCorporList.corporationName}
											</td>
											<td class="mtdtextcenterwrite">
												${approveCorporList.kindOfName}
											</td>
											<td class="mtdtextcenterwrite">
												<logic:equal value="0" name="approveCorporList" property="status">未批准</logic:equal>
												<logic:equal value="1" name="approveCorporList" property="status">批准</logic:equal>
											</td>
										</tr>
									</logic:iterate>
								</logic:notEmpty>
								<tr>
									<td colspan="6" class="mtdtitle1">
										<table width='100%'>
											<tr>
												<td class="left">
													<%=mPage.getPageInfo()%>
												</td>
												<td class="right">
													<%=mPage.getTurnPageLink()%>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</div>
		</html:form>

	</body>
</html>
